package com.mvc4g.example.mockup.client.action;

import com.mvc4g.client.ActionInterface;
import com.mvc4g.client.Controller;
import com.mvc4g.example.mockup.client.Constants;
import com.mvc4g.example.mockup.client.view.templates.RootTemplate;
import com.mvc4g.example.mockup.client.view.views.AbstractView;

public class StartAction implements ActionInterface, Constants {

	@Override
	public void execute(Controller controller, Object form) {
		RootTemplate rootView = (RootTemplate) controller.getView(ROOT_TEMPLATE);
		AbstractView loginView = (AbstractView) controller.getView(LOGIN_VIEW);
		rootView.changePage(loginView, null);
	}

}
